﻿using Microsoft.AspNet.SignalR;
using Microsoft.Owin;
using Owin;
using Popw.LiveBlog;

[assembly: OwinStartup(typeof(Startup))]

namespace Popw.LiveBlog
{
	public partial class Startup
	{
		public void Configuration(IAppBuilder app)
		{
			if (Config.Settings.IsAzure)
				GlobalHost.DependencyResolver.UseServiceBus(Config.ConnectionStrings.ServiceBusConnectionString, Config.Settings.ServiceBusTopic);

			app.MapSignalR();
		} 
	}
}